<?php


		$host = "localhost";
		$database = "pinproje_main";
		$user = "pinproje_main";
		$password = "Neptune558!";
	    mysql_connect($host, $user, $password)
	    	or die( mysql_error() );

$result = mysql_query("SHOW FULL PROCESSLIST");
while ($row=mysql_fetch_array($result)) {
$process_id=$row["Id"];
if ($row["Time"] > 200 ) {
$sql="KILL $process_id";
mysql_query($sql);
}
}

?>